<?php
    header('Content-type:text/json');
    require "../../connection.php";
    $result = $conn->doSql("select adv.id,adv.imgUrl,goods.goods_name from goods_adv_map as adv,goods where goods_id=goods.id");
    echo json_encode($result);

?>